import instance from '@/utils/request'
// 获取部门列表
export const getDepartmentList = () => instance.get('/company/department')
// 获取项目负责人列表
export const getManagerList = () => instance.get('/sys/user/simple')
// 新增部门
export const addDepartment = (data) => instance.post('/company/department', data)
// 获取部门详情
export const getDepartmentDetails = (id) => instance.get(`/company/department/${id}`)
// 编辑部门
export const updateDepartment = (data) => instance.put(`/company/department/${data.id}`, data)
// 删除部门
export const delDepartment = (id) => instance.delete(`/company/department/${id}`)
